<?php

use think\facade\Route;
use magein\sms\service\think\SmsController;

Route::group('sms', function () {
    Route::post('code', SmsController::class . '@code');
    Route::post('message', SmsController::class . '@message');
    Route::post('batch', SmsController::class . '@batch');
    Route::post('delay', SmsController::class . '@delay');
})->middleware(config('sms.middleware') ?: []);